//
//  GLAResponseModel.h
//  GLASDK_Overseas
//
//  Created by ljwcode on 2022/10/26.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//图片审核状态
FOUNDATION_EXTERN NSString * const GLASDKImageStatusResultNotification;

@class GLAUser;

@interface GLAResponseModel : NSObject

@property (nonatomic,assign) NSInteger status;
//国际化翻译后的编码+提示语
@property (nonatomic,strong) NSString *info;

@property (nonatomic,strong) NSString *code;
//平台请求返回码
@property (nonatomic,strong) NSString *developMessage;
//平台请求编码
@property (nonatomic,strong) NSString *developCode;
//接口返回的提示,用于上报
@property (nonatomic,strong) NSString *trackMessage;
@property (nonatomic,strong) NSDictionary *responseDic;
@property (nonatomic,strong) GLAUser *user;

@property (nonatomic,assign) BOOL isNeedEmailLogin;//需要调mail登录界面
@property (nonatomic,strong) NSString *result; // 结果

- (void)setNetError;


@end

@interface GLAUser : NSObject

@property (nonatomic, strong) NSString  *userId;
@property (nonatomic, strong) NSString  *userName;
@property (nonatomic, strong) NSString *email;
@property (nonatomic, strong) NSString *bindNickName;

@property (nonatomic, assign) int userType; //0 游客   1 facebook  2 google  7 apple  20 twitter
@property (nonatomic, strong) NSString *session;
@property (nonatomic, strong) NSString *refreshToken;
@property (nonatomic, assign) int istry;  // 0非试玩 1试玩账号
@property (nonatomic, assign) int isNewUser;  //是否新账号 第一次登陆

@property (nonatomic, strong) NSArray *bindUserList;
@property (nonatomic, strong) NSArray *userTypeList;

@property (nonatomic, strong) NSString *openInfo; //第三方绑定信息，为了兼容游戏老的数据结构，重新包装一下

@property (nonatomic, assign) int isBindEmail; //新增是否绑定emial

- (instancetype)initUserWithDic:(NSDictionary *)resDic;

- (instancetype)initUserWithToken:(NSString *)token;

@end

// 图片上传结果
@interface ImageUploadResult : NSObject
/**
 *  code
 *  200  上传成功  此时imageId、imageUrl、objectName才有值
 *  101  取消上传
 *  102  上传失败，网络异常
 *  104  图片数据为空，message有值
 *  其他code，上传失败，接口返回
 */
@property(nonatomic, assign) NSInteger code;

/**
 *  自定义图片id
 */
@property(nonatomic, strong) NSString *imageId;

/**
 *  图片链接
 */
@property(nonatomic, strong) NSString *imageUrl;

/**
 *  名称
 */
@property(nonatomic, strong) NSString *objectName;

/**
 *  提示语
 */
@property(nonatomic, strong) NSString *message;

@end


// 审核图片结果
@interface ImageStatusResult : NSObject
/**
 * 图片状态 : 0未审核，1已审核，2机审通过，3审核不通过，4机审不通过，5已删除，6过期拒绝
 */
@property(nonatomic, strong) NSString *status;

/**
 *  图片链接
 */
@property(nonatomic, strong) NSString *imageUrl;

/**
 *  名称
 */
@property(nonatomic, strong) NSString *objectName;

/**
 *  自定义图片id
 */
@property(nonatomic, strong) NSString *imageId;

/**
 *  角色id
 */
@property(nonatomic, strong) NSString *actorId;

/**
 *  提示语
 */
@property(nonatomic, strong) NSString *message;

@end

@interface GLACMPResult : NSObject

@property (nonatomic, strong) NSString  *eea;
@property (nonatomic, strong) NSString  *ad_user_data;
@property (nonatomic, strong) NSString  *ad_personalization;
@property (nonatomic, strong) NSString  *npa;
@property (nonatomic, strong) NSString  *ad_storage;
@property (nonatomic, strong) NSString  *analytics_storage;

@end

NS_ASSUME_NONNULL_END
